home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / TransSkel 3.24 / Source / Dialog Item Stuff / SkelSetDlogProc.c < prev    next >
Text File  |  1996-01-17  |  387b  |  22 lines

  1. /*
  2.  * Set procedure associated with dialog user item.
  3.  *
  4.  * If you are passing compiling PowerPC code, proc should be a pointer to
  5.  * a routine descriptor.
  6.  */
  7.  
  8.  
  9. # include    "TransSkel.h"
  10.  
  11.  
  12. pascal void
  13. SkelSetDlogProc (DialogPtr d, short item, UserItemUPP proc)
  14. {
  15. short    type;
  16. Handle    h;
  17. Rect    r;
  18.  
  19.     GetDialogItem (d, item, &type, &h, &r);
  20.     SetDialogItem (d, item, type, (Handle) proc, &r);
  21. }
  22.